<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeFile="Lista.aspx.cs" Inherits="patriota_Lista" MasterPageFile="~/PP/admin.master" %>


<asp:Content ID="Content1" runat="server"   contentplaceholderid="ContentPlaceHolder1">
    <div class="grid_16" id="content">
    <!--  TITLE START  --> 
    <div class="grid_9">
    <h1 class="content_edit">
            Registro de Votos</h1>
    </div>
    <!--RIGHT TEXT/CALENDAR-->
    <div class="grid_6" id="eventbox"><a href="#" class="inline_calendar">Mensaje</a>
    	<div class="hidden_calendar"></div>
    </div>
    <!--RIGHT TEXT/CALENDAR END-->
    <div class="clear">
    </div>
    <!--  TITLE END  -->    
    <!-- #PORTLETS START -->
    <div id="portlets">
    
      
	<!--  SECOND SORTABLE COLUMN END -->
    <div class="clear"></div>
    <!--THIS IS A WIDE PORTLET-->
    <div class="portlet">
        <div class="portlet-header fixed">&nbsp;</div>
		<div class="portlet-content nopadding">
          
     <table  cellpadding="0" cellspacing="0" summary="Busqueda" width="80%" align="center">
     <tbody align="center">
            <tr valign="top">
        
                <td style="width: 100px">Departamento:</td>
                <td style="width: 155px">
                
                    <asp:DropDownList ID="cb_depto" runat="server" Width="155px" 
                        AutoPostBack="True" onselectedindexchanged="cb_depto_SelectedIndexChanged">
                    </asp:DropDownList>
                
                </td>
                <td style="width: 100px">Municipio: </td>
                <td style="width: 155px">
                
                    <asp:DropDownList ID="cb_municipio" runat="server" Width="155px">
                    </asp:DropDownList>
                
                </td>
                <td rowspan="4" >
            <asp:Image ID="Image1" runat="server" ImageUrl="~/PP/images/manodura.gif" Height="82px" 
                        Width="93px" />
            
        </td>
            </tr>
            <tr>
                <td>Telefono:</td>
                <td colspan="1" style="width: 155px">
                    <asp:TextBox ID="tb_telefono" runat="server" Width="150px"></asp:TextBox>
                </td>
                 <td style="width: 100px">Nombre:</td>
                  <td style="width: 155px">           
                    <asp:TextBox ID="tb_nombre" runat="server" Width="150px"></asp:TextBox>
                </td>
            </tr>
            <tr><td colspan="4">&nbsp;</td> </tr>
            
            <tr>
                <td colspan="4"><asp:ImageButton ID="bt_buscar" runat="server" ImageAlign="Top" 
                        ImageUrl="~/PP/images/but_ok_yellow_complete.gif" 
                        onclick="bt_buscar_Click" />
                  </td>
            </tr>
            
            <tr><td colspan="5">&nbsp;</td></tr>
            
             <tr>
        <td  colspan="5">
            <asp:GridView ID="gv_datos" runat="server" AutoGenerateColumns="False" 
                EmptyDataText="Haga una busqueda porfavor" Width="800px" PageSize="25" 
                Font-Names="Trebuchet MS" onrowdatabound="gv_datos_RowDataBound">
                <AlternatingRowStyle BackColor="#F5E3CB" />
                <Columns>
                    <asp:TemplateField HeaderText="NOMBRE"><ItemTemplate><asp:Label ID="lb_nombre" runat="server"  Text='<%# Eval("nombre") %>' ></asp:Label></ItemTemplate></asp:TemplateField>
                    <asp:TemplateField HeaderText="CELULAR"><ItemTemplate><asp:Label ID="lb_celular" runat="server" Text='<%# Eval("celular") %>'></asp:Label></ItemTemplate></asp:TemplateField>
                    <asp:TemplateField HeaderText="DEPARTAMENTO"><ItemTemplate><asp:Label ID="lb_departamento" runat="server" Text='<%# Eval("departamento") %>'></asp:Label></ItemTemplate></asp:TemplateField>
                    
                    <asp:TemplateField HeaderText="MUNICIPIO"><ItemTemplate><asp:Label ID="lb_municipio" runat="server" Text='<%# Eval("municipio") %>'></asp:Label></ItemTemplate></asp:TemplateField>
                    <asp:TemplateField HeaderText="NO CONTESTO">
                          
                          <ItemTemplate>
                            <asp:CheckBox ID="ch_votos" runat="server"  OnCheckedChanged="check_checked"  AutoPostBack="true" Checked="false" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="VOTOS">
                          
                          <ItemTemplate>
                            <asp:TextBox ID="tb_votos" runat="server"    Text=  '<%# Eval("votos").ToString()  %>'  Width="55px" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="  META"><ItemTemplate><asp:Label ID="lb_meta" runat="server" ></asp:Label></ItemTemplate></asp:TemplateField>              
                    
                    <asp:TemplateField HeaderText="%"><ItemTemplate><asp:Label ID="lb_votos" runat="server" Text='<%# Eval("porcentaje") %>'></asp:Label></ItemTemplate>                  
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle BackColor="#E99A11" />
            </asp:GridView>
        </td>
    </tr>
    </tbody>
    </table>
    

		</div>
      </div>
<!--  END #PORTLETS -->  
   </div>
    <div class="clear"> </div>
  </div>




   



</asp:Content>



